Feat/custom data - #33
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Adds support for attaching custom, user-typed metadata to Vueltip tooltip content and updates the directive value shape to align with the Content model.
Changes:
- Introduce
CustomVueltipDataandContent.custom, and update directive binding type (Value) to support{ text, custom?, placement? }. - Simplify directive parsing (
toContent) and placement extraction for the new value shape. - Update Vueltip public exports, README usage examples, and demo usage to reflect the new API and show custom data.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/vueltip/src/types.ts | Adds CustomVueltipData, extends Content, and changes directive value typing to the new { text, custom?, placement? } shape. |
| packages/vueltip/src/index.ts | Re-exports CustomVueltipData alongside Content. |
| packages/vueltip/src/directive.ts | Updates directive binding types and converts bound values into Content via the new shape. |
| packages/vueltip/README.md | Updates directive examples to use text and documents module augmentation for custom data. |
| demo/src/main.ts | Demonstrates module augmentation for CustomVueltipData (currently in the runtime entry file). |
| demo/src/Tooltip.vue | Displays the new content.custom field in the demo tooltip UI. |
| demo/src/App.vue | Updates demo directive usages from content to text and adds a custom-data example. |
vinpogo
force-pushed
the
feat/custom-data
branch
from
February 28, 2026 09:54
b850449 to
ed3b64e
Compare
vinpogo
force-pushed
the
feat/custom-data
branch
from
February 28, 2026 10:09
ed3b64e to
ff7472c
Compare
vinpogo
force-pushed
the
feat/custom-data
branch
from
February 28, 2026 10:13
ff7472c to
cb6955a
Compare
vinpogo
force-pushed
the
feat/custom-data
branch
from
February 28, 2026 10:26
cb6955a to
7d3e621
Compare
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.